<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{CONTROLLER_NAME/ACTION_NAME}</title>
    <link href="/Statics/assets/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/Statics/assets/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Statics/assets/css/animate.min.css" rel="stylesheet">
    <link href="/Statics/assets/css/style.min.css?v=4.0.0" rel="stylesheet">

    <script src="/Statics/assets/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Statics/assets/js/bootstrap.min.js?v=3.3.5"></script>
</head>
<body>
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                    <div class="panel blank-panel">
                        <div class="panel-heading">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a href="<?php echo U('index');?>">路由列表</a>
                                    </li>
                                    <li class=""><a href="<?php echo U('add');?>">添加路由</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel-body">
                        <!-- 路由列表 -->
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                            <tr>
                                <th>排序</th>
                                <th>完整地址</th>
                                <th>实际地址</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php if(is_array($routes)): foreach($routes as $key=>$route): ?><tr class="gradeA">
                                <td><input type="text" value="<?php echo ($route["listorder"]); ?>"> </td>
                                <td><?php echo ($route["full_url"]); ?>
                                </td>
                                <td><?php echo ($route["url"]); ?></td>
                                <td class="center"><?php echo ($route["status"]); ?></td>
                                <td class="center">编辑 删除</td>
                            </tr><?php endforeach; endif; ?>

                            </tbody>
                            <tfoot>
                            <tr>
                                <th>排序</th>
                                <th>完整地址</th>
                                <th>实际地址</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </tfoot>
                        </table>
                        </div>
                    </div>

            </div>
        </div>
    </div>
</div>
</body>
</html>